package com.ar.network;


/**
 * The listener interface for receiving onResponse events.
 * The class that is interested in processing a onResponse
 * event implements this interface, and the object created
 * with that class is registered with a component using the
 * component's <code>addOnResponseListener<code> method. When
 * the onResponse event occurs, that object's appropriate
 * method is invoked.
 *
 * @see OnResponseEvent
 */
public interface OnResponseListener {
	
	/**
	 * Called when successfully receive response from server
	 *
	 * @param jsonResponse the response as JSON string
	 */
	public void onResponse(String jsonResponse);
	
	/**
	 * Called when the request attempt reached time out
	 */
	public void onRequestTimeOut();
}
